package com.chinasofti.address;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class InetAddressDemo {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress byName = InetAddress.getByName("192.168.11.73");
        String name = byName.getHostName();
        System.out.println(name);
        String hostAddress = byName.getHostAddress();
        System.out.println(hostAddress);
    }
}
